//api文件夹用于存放对后台请求的代码
import service from ".";//导入

const teacherAndStudentApi = {
    //查询所有的项目信息
    selectAll() {
        return service.get('/admin/teacherAndStudent');
    },
    //获取用户信息
    allStudent(tid) {
        return service.get(`/admin/teacherAndStudent/allStudent/${tid}`);
    },
    // 分配学生
    insertTidAndSid(tid, sids) {
        return service.post('/admin/teacherAndStudent/tidAndSid', {
            tid,
            sids
        });
    }
};

export default teacherAndStudentApi;//导出